package Java_reflect;

import java.util.Comparator;

@MyAnnotation(value = "hi")
public class Person extends Creature<String> implements Comparator<String>, MyInterface {

    private String name;
    int age;
    public int id;

    public Person(){}
    @MyAnnotation(value = "abc")
    private Person(String name){
        this.name = name;
    }

    Person(String name, int age){
        this.name = name;
        this.age = age;
    }
    @MyAnnotation
    private String show(String nation){
        System.out.println("我的国籍是：" + nation);
        return nation;
    }

    public String display(String interest){
        return interest;
    }

    @Override
    public void info() {
        System.out.println("我是一个人");
    }

    @Override
    public int compare(String o1, String o2) {
        return 0;
    }
}
